﻿using System;
using System.ComponentModel;

namespace SBPweb.Messenger.Clients.Base
{

    public class ResultedAsyncCompletedEventArgs<T> : AsyncCompletedEventArgs
    {

        private T result;

        public ResultedAsyncCompletedEventArgs(Exception error, bool cancelled, object userState, T result)
            : base(error, cancelled, userState)
        {
            this.result = result;
        }

        public T Result
        {
            get
            {
                return result;
            }
        }

    }

}